package com.tte.common.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @PackageName: com.tte.common.config
 * @ClaseName: RestTemplateConfig
 * @Description: 没有当前类报错：Consider defining a bean of type 'org.springframework.web.client.RestTemplate' in your configuration.
 * @Author: DongWH
 * @Date: 2023/2/15 9:47
 * @params *@params $
 */
@Configuration
public class RestTemplateConfig {

    @Bean
    public RestTemplate restTemplate(RestTemplateBuilder builder){
        return builder.build();
    }
}
